import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 使用懒加载插件
import VueLazyLoad from 'vue-lazyload'
Vue.use(VueLazyLoad, {
  loading: require("./assets/img/common/placeholder.png")
});

// 解决移动端的300ms延迟
import FastClick from 'fastclick'
FastClick.attach(document.body)

// 插件对象引入  执行Vue.use()  会自动执行插件的install函数
import toast from 'components/common/toast'
Vue.use(toast);

Vue.config.productionTip = false

Vue.prototype.$bus = new Vue()

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
